import server from '../../server/api'
// 请求订单列表接口
const getAddressList = ({commit,state}, {memberId}) => {
	server.post("/index/user/addressList", {
		member_id: memberId
	}, function(res) {
		commit("setAddressList",res.data)
	})
}
// 请求删除地址接口
const delAddress = ({commit,state}, params) => {
	server.post("/index/user/delAddress", params, function(res) {
		commit("setAddAdress",res.data)
	})
}
// 请求添加地址接口
const addAddress = ({commit,state}, params) => {
	server.post("/index/user/address", params, function(res) {
		commit("setAddAdress",res.data)
	})
}
export default{
	getAddressList,
	addAddress,
	delAddress
}
